.class public final LPkUwx/Axwse/MCuFV/mGQVz;
.super Ljava/lang/Object;

# interfaces
.implements LPkUwx/KtgSK;


# static fields
.field private static final RRZAh:LPkUwx/wkoHv;


# instance fields
.field final pxsJP:LPkUwx/Axwse/MCuFV/EfWRe;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    new-instance v0, LPkUwx/Axwse/MCuFV/vfIJn;

    invoke-direct {v0}, LPkUwx/Axwse/MCuFV/vfIJn;-><init>()V

    sput-object v0, LPkUwx/Axwse/MCuFV/mGQVz;->RRZAh:LPkUwx/wkoHv;

    return-void
.end method

.method public constructor <init>(LPkUwx/Axwse/MCuFV/EfWRe;)V
    .locals 0

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    iput-object p1, p0, LPkUwx/Axwse/MCuFV/mGQVz;->pxsJP:LPkUwx/Axwse/MCuFV/EfWRe;

    return-void
.end method

.method private HMuXd(LPkUwx/Axwse/MCuFV/WTFSf;LPkUwx/kHRtU;)LPkUwx/kHRtU;
    .locals 4

    if-nez p1, :cond_1

    :cond_0
    :goto_0
    return-object p2

    :cond_1
    invoke-interface {p1}, LPkUwx/Axwse/MCuFV/WTFSf;->gIfai()LwFZra/NYfbw;

    move-result-object v0

    if-eqz v0, :cond_0

    invoke-virtual {p2}, LPkUwx/kHRtU;->uOBdj()LPkUwx/wkoHv;

    move-result-object v1

    invoke-virtual {v1}, LPkUwx/wkoHv;->eKnKy()LwFZra/OeMtE;

    move-result-object v1

    invoke-static {v0}, LwFZra/LLCTB;->SQKOi(LwFZra/NYfbw;)LwFZra/AAVAr;

    move-result-object v0

    new-instance v2, LPkUwx/Axwse/MCuFV/gexVi;

    invoke-direct {v2, p0, v1, p1, v0}, LPkUwx/Axwse/MCuFV/gexVi;-><init>(LPkUwx/Axwse/MCuFV/mGQVz;LwFZra/OeMtE;LPkUwx/Axwse/MCuFV/WTFSf;LwFZra/AAVAr;)V

    invoke-virtual {p2}, LPkUwx/kHRtU;->YsCmv()LPkUwx/acCnD;

    move-result-object v0

    new-instance v1, LPkUwx/Axwse/EwidO/kchTU;

    invoke-virtual {p2}, LPkUwx/kHRtU;->AfukV()LPkUwx/CLKCR;

    move-result-object v3

    invoke-static {v2}, LwFZra/LLCTB;->xVbFZ(LwFZra/vpTWk;)LwFZra/OeMtE;

    move-result-object v2

    invoke-direct {v1, v3, v2}, LPkUwx/Axwse/EwidO/kchTU;-><init>(LPkUwx/CLKCR;LwFZra/OeMtE;)V

    invoke-virtual {v0, v1}, LPkUwx/acCnD;->EyhHl(LPkUwx/wkoHv;)LPkUwx/acCnD;

    move-result-object v0

    invoke-virtual {v0}, LPkUwx/acCnD;->DWSCU()LPkUwx/kHRtU;

    move-result-object p2

    goto :goto_0
.end method

.method static IhWrZ(Ljava/lang/String;)Z
    .locals 1

    const-string v0, "Connection"

    invoke-virtual {v0, p0}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_0

    const-string v0, "Keep-Alive"

    invoke-virtual {v0, p0}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_0

    const-string v0, "Proxy-Authenticate"

    invoke-virtual {v0, p0}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_0

    const-string v0, "Proxy-Authorization"

    invoke-virtual {v0, p0}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_0

    const-string v0, "TE"

    invoke-virtual {v0, p0}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_0

    const-string v0, "Trailers"

    invoke-virtual {v0, p0}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_0

    const-string v0, "Transfer-Encoding"

    invoke-virtual {v0, p0}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_0

    const-string v0, "Upgrade"

    invoke-virtual {v0, p0}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method private static ePCKq(LPkUwx/kHRtU;LPkUwx/kHRtU;)Z
    .locals 6

    const/4 v0, 0x1

    invoke-virtual {p1}, LPkUwx/kHRtU;->Dhuat()I

    move-result v1

    const/16 v2, 0x130

    if-ne v1, v2, :cond_1

    :cond_0
    :goto_0
    return v0

    :cond_1
    invoke-virtual {p0}, LPkUwx/kHRtU;->AfukV()LPkUwx/CLKCR;

    move-result-object v1

    const-string v2, "Last-Modified"

    invoke-virtual {v1, v2}, LPkUwx/CLKCR;->SbnKk(Ljava/lang/String;)Ljava/util/Date;

    move-result-object v1

    if-eqz v1, :cond_2

    invoke-virtual {p1}, LPkUwx/kHRtU;->AfukV()LPkUwx/CLKCR;

    move-result-object v2

    const-string v3, "Last-Modified"

    invoke-virtual {v2, v3}, LPkUwx/CLKCR;->SbnKk(Ljava/lang/String;)Ljava/util/Date;

    move-result-object v2

    if-eqz v2, :cond_2

    invoke-virtual {v2}, Ljava/util/Date;->getTime()J

    move-result-wide v2

    invoke-virtual {v1}, Ljava/util/Date;->getTime()J

    move-result-wide v4

    cmp-long v1, v2, v4

    if-ltz v1, :cond_0

    :cond_2
    const/4 v0, 0x0

    goto :goto_0
.end method

.method private static teKpI(LPkUwx/CLKCR;LPkUwx/CLKCR;)LPkUwx/CLKCR;
    .locals 7

    const/4 v0, 0x0

    new-instance v2, LPkUwx/xlpSH;

    invoke-direct {v2}, LPkUwx/xlpSH;-><init>()V

    invoke-virtual {p0}, LPkUwx/CLKCR;->NsUHj()I

    move-result v3

    move v1, v0

    :goto_0
    if-ge v1, v3, :cond_3

    invoke-virtual {p0, v1}, LPkUwx/CLKCR;->EPgrL(I)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {p0, v1}, LPkUwx/CLKCR;->hrryF(I)Ljava/lang/String;

    move-result-object v5

    const-string v6, "Warning"

    invoke-virtual {v6, v4}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v6

    if-eqz v6, :cond_1

    const-string v6, "1"

    invoke-virtual {v5, v6}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v6

    if-eqz v6, :cond_1

    :cond_0
    :goto_1
    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    :cond_1
    invoke-static {v4}, LPkUwx/Axwse/MCuFV/mGQVz;->IhWrZ(Ljava/lang/String;)Z

    move-result v6

    if-eqz v6, :cond_2

    invoke-virtual {p1, v4}, LPkUwx/CLKCR;->CuSKj(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    if-nez v6, :cond_0

    :cond_2
    sget-object v6, LPkUwx/Axwse/jJvfb;->CJfHw:LPkUwx/Axwse/jJvfb;

    invoke-virtual {v6, v2, v4, v5}, LPkUwx/Axwse/jJvfb;->hPhDg(LPkUwx/xlpSH;Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_1

    :cond_3
    invoke-virtual {p1}, LPkUwx/CLKCR;->NsUHj()I

    move-result v1

    :goto_2
    if-ge v0, v1, :cond_6

    invoke-virtual {p1, v0}, LPkUwx/CLKCR;->EPgrL(I)Ljava/lang/String;

    move-result-object v3

    const-string v4, "Content-Length"

    invoke-virtual {v4, v3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v4

    if-eqz v4, :cond_5

    :cond_4
    :goto_3
    add-int/lit8 v0, v0, 0x1

    goto :goto_2

    :cond_5
    invoke-static {v3}, LPkUwx/Axwse/MCuFV/mGQVz;->IhWrZ(Ljava/lang/String;)Z

    move-result v4

    if-eqz v4, :cond_4

    sget-object v4, LPkUwx/Axwse/jJvfb;->CJfHw:LPkUwx/Axwse/jJvfb;

    invoke-virtual {p1, v0}, LPkUwx/CLKCR;->hrryF(I)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v2, v3, v5}, LPkUwx/Axwse/jJvfb;->hPhDg(LPkUwx/xlpSH;Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_3

    :cond_6
    invoke-virtual {v2}, LPkUwx/xlpSH;->mhYNn()LPkUwx/CLKCR;

    move-result-object v0

    return-object v0
.end method

.method private yfrHN(LPkUwx/kHRtU;LPkUwx/tQIEa;LPkUwx/Axwse/MCuFV/EfWRe;)LPkUwx/Axwse/MCuFV/WTFSf;
    .locals 2

    const/4 v0, 0x0

    if-nez p3, :cond_1

    :cond_0
    :goto_0
    return-object v0

    :cond_1
    invoke-static {p1, p2}, LPkUwx/Axwse/MCuFV/aXFyS;->RoLRk(LPkUwx/kHRtU;LPkUwx/tQIEa;)Z

    move-result v1

    if-nez v1, :cond_2

    invoke-virtual {p2}, LPkUwx/tQIEa;->fsbPw()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, LPkUwx/Axwse/EwidO/erNhg;->aqyNk(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_0

    :try_start_0
    invoke-interface {p3, p2}, LPkUwx/Axwse/MCuFV/EfWRe;->oMkoM(LPkUwx/tQIEa;)V
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v1

    goto :goto_0

    :cond_2
    invoke-interface {p3, p1}, LPkUwx/Axwse/MCuFV/EfWRe;->CocPM(LPkUwx/kHRtU;)LPkUwx/Axwse/MCuFV/WTFSf;

    move-result-object v0

    goto :goto_0
.end method

.method private static zVqUZ(LPkUwx/kHRtU;)LPkUwx/kHRtU;
    .locals 2

    if-eqz p0, :cond_0

    invoke-virtual {p0}, LPkUwx/kHRtU;->uOBdj()LPkUwx/wkoHv;

    move-result-object v0

    if-eqz v0, :cond_0

    invoke-virtual {p0}, LPkUwx/kHRtU;->YsCmv()LPkUwx/acCnD;

    move-result-object v0

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, LPkUwx/acCnD;->EyhHl(LPkUwx/wkoHv;)LPkUwx/acCnD;

    move-result-object v0

    invoke-virtual {v0}, LPkUwx/acCnD;->DWSCU()LPkUwx/kHRtU;

    move-result-object p0

    :cond_0
    return-object p0
.end method


# virtual methods
.method public nVhfY(LPkUwx/yHGlH;)LPkUwx/kHRtU;
    .locals 6

    const/4 v1, 0x0

    iget-object v0, p0, LPkUwx/Axwse/MCuFV/mGQVz;->pxsJP:LPkUwx/Axwse/MCuFV/EfWRe;

    if-eqz v0, :cond_3

    iget-object v0, p0, LPkUwx/Axwse/MCuFV/mGQVz;->pxsJP:LPkUwx/Axwse/MCuFV/EfWRe;

    invoke-interface {p1}, LPkUwx/yHGlH;->nMtaf()LPkUwx/tQIEa;

    move-result-object v2

    invoke-interface {v0, v2}, LPkUwx/Axwse/MCuFV/EfWRe;->pTYQv(LPkUwx/tQIEa;)LPkUwx/kHRtU;

    move-result-object v0

    :goto_0
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v2

    new-instance v4, LPkUwx/Axwse/MCuFV/Hdytg;

    invoke-interface {p1}, LPkUwx/yHGlH;->nMtaf()LPkUwx/tQIEa;

    move-result-object v5

    invoke-direct {v4, v2, v3, v5, v0}, LPkUwx/Axwse/MCuFV/Hdytg;-><init>(JLPkUwx/tQIEa;LPkUwx/kHRtU;)V

    invoke-virtual {v4}, LPkUwx/Axwse/MCuFV/Hdytg;->vLeVB()LPkUwx/Axwse/MCuFV/aXFyS;

    move-result-object v2

    iget-object v3, v2, LPkUwx/Axwse/MCuFV/aXFyS;->tSrQS:LPkUwx/tQIEa;

    iget-object v4, v2, LPkUwx/Axwse/MCuFV/aXFyS;->fjgNQ:LPkUwx/kHRtU;

    iget-object v5, p0, LPkUwx/Axwse/MCuFV/mGQVz;->pxsJP:LPkUwx/Axwse/MCuFV/EfWRe;

    if-eqz v5, :cond_0

    iget-object v5, p0, LPkUwx/Axwse/MCuFV/mGQVz;->pxsJP:LPkUwx/Axwse/MCuFV/EfWRe;

    invoke-interface {v5, v2}, LPkUwx/Axwse/MCuFV/EfWRe;->QYKQU(LPkUwx/Axwse/MCuFV/aXFyS;)V

    :cond_0
    if-eqz v0, :cond_1

    if-nez v4, :cond_1

    invoke-virtual {v0}, LPkUwx/kHRtU;->uOBdj()LPkUwx/wkoHv;

    move-result-object v2

    invoke-static {v2}, LPkUwx/Axwse/NmOez;->wdUmr(Ljava/io/Closeable;)V

    :cond_1
    if-nez v3, :cond_4

    if-nez v4, :cond_4

    new-instance v0, LPkUwx/acCnD;

    invoke-direct {v0}, LPkUwx/acCnD;-><init>()V

    invoke-interface {p1}, LPkUwx/yHGlH;->nMtaf()LPkUwx/tQIEa;

    move-result-object v1

    invoke-virtual {v0, v1}, LPkUwx/acCnD;->jzFKY(LPkUwx/tQIEa;)LPkUwx/acCnD;

    move-result-object v0

    sget-object v1, LPkUwx/mLEoa;->zUZNS:LPkUwx/mLEoa;

    invoke-virtual {v0, v1}, LPkUwx/acCnD;->YwDyI(LPkUwx/mLEoa;)LPkUwx/acCnD;

    move-result-object v0

    const/16 v1, 0x1f8

    invoke-virtual {v0, v1}, LPkUwx/acCnD;->FaJPR(I)LPkUwx/acCnD;

    move-result-object v0

    const-string v1, "Unsatisfiable Request (only-if-cached)"

    invoke-virtual {v0, v1}, LPkUwx/acCnD;->hXOKQ(Ljava/lang/String;)LPkUwx/acCnD;

    move-result-object v0

    sget-object v1, LPkUwx/Axwse/MCuFV/mGQVz;->RRZAh:LPkUwx/wkoHv;

    invoke-virtual {v0, v1}, LPkUwx/acCnD;->EyhHl(LPkUwx/wkoHv;)LPkUwx/acCnD;

    move-result-object v0

    const-wide/16 v2, -0x1

    invoke-virtual {v0, v2, v3}, LPkUwx/acCnD;->ZjBKK(J)LPkUwx/acCnD;

    move-result-object v0

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v2

    invoke-virtual {v0, v2, v3}, LPkUwx/acCnD;->HJhXD(J)LPkUwx/acCnD;

    move-result-object v0

    invoke-virtual {v0}, LPkUwx/acCnD;->DWSCU()LPkUwx/kHRtU;

    move-result-object v0

    :cond_2
    :goto_1
    return-object v0

    :cond_3
    move-object v0, v1

    goto :goto_0

    :cond_4
    if-nez v3, :cond_5

    invoke-virtual {v4}, LPkUwx/kHRtU;->YsCmv()LPkUwx/acCnD;

    move-result-object v0

    invoke-static {v4}, LPkUwx/Axwse/MCuFV/mGQVz;->zVqUZ(LPkUwx/kHRtU;)LPkUwx/kHRtU;

    move-result-object v1

    invoke-virtual {v0, v1}, LPkUwx/acCnD;->VmVgn(LPkUwx/kHRtU;)LPkUwx/acCnD;

    move-result-object v0

    invoke-virtual {v0}, LPkUwx/acCnD;->DWSCU()LPkUwx/kHRtU;

    move-result-object v0

    goto :goto_1

    :cond_5
    :try_start_0
    invoke-interface {p1, v3}, LPkUwx/yHGlH;->oLVwY(LPkUwx/tQIEa;)LPkUwx/kHRtU;
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    move-result-object v1

    if-nez v1, :cond_6

    if-eqz v0, :cond_6

    invoke-virtual {v0}, LPkUwx/kHRtU;->uOBdj()LPkUwx/wkoHv;

    move-result-object v0

    invoke-static {v0}, LPkUwx/Axwse/NmOez;->wdUmr(Ljava/io/Closeable;)V

    :cond_6
    if-eqz v4, :cond_9

    invoke-static {v4, v1}, LPkUwx/Axwse/MCuFV/mGQVz;->ePCKq(LPkUwx/kHRtU;LPkUwx/kHRtU;)Z

    move-result v0

    if-eqz v0, :cond_8

    invoke-virtual {v4}, LPkUwx/kHRtU;->YsCmv()LPkUwx/acCnD;

    move-result-object v0

    invoke-virtual {v4}, LPkUwx/kHRtU;->AfukV()LPkUwx/CLKCR;

    move-result-object v2

    invoke-virtual {v1}, LPkUwx/kHRtU;->AfukV()LPkUwx/CLKCR;

    move-result-object v3

    invoke-static {v2, v3}, LPkUwx/Axwse/MCuFV/mGQVz;->teKpI(LPkUwx/CLKCR;LPkUwx/CLKCR;)LPkUwx/CLKCR;

    move-result-object v2

    invoke-virtual {v0, v2}, LPkUwx/acCnD;->zIPDB(LPkUwx/CLKCR;)LPkUwx/acCnD;

    move-result-object v0

    invoke-static {v4}, LPkUwx/Axwse/MCuFV/mGQVz;->zVqUZ(LPkUwx/kHRtU;)LPkUwx/kHRtU;

    move-result-object v2

    invoke-virtual {v0, v2}, LPkUwx/acCnD;->VmVgn(LPkUwx/kHRtU;)LPkUwx/acCnD;

    move-result-object v0

    invoke-static {v1}, LPkUwx/Axwse/MCuFV/mGQVz;->zVqUZ(LPkUwx/kHRtU;)LPkUwx/kHRtU;

    move-result-object v2

    invoke-virtual {v0, v2}, LPkUwx/acCnD;->sEiOl(LPkUwx/kHRtU;)LPkUwx/acCnD;

    move-result-object v0

    invoke-virtual {v0}, LPkUwx/acCnD;->DWSCU()LPkUwx/kHRtU;

    move-result-object v0

    invoke-virtual {v1}, LPkUwx/kHRtU;->uOBdj()LPkUwx/wkoHv;

    move-result-object v1

    invoke-virtual {v1}, LPkUwx/wkoHv;->close()V

    iget-object v1, p0, LPkUwx/Axwse/MCuFV/mGQVz;->pxsJP:LPkUwx/Axwse/MCuFV/EfWRe;

    invoke-interface {v1}, LPkUwx/Axwse/MCuFV/EfWRe;->FatPa()V

    iget-object v1, p0, LPkUwx/Axwse/MCuFV/mGQVz;->pxsJP:LPkUwx/Axwse/MCuFV/EfWRe;

    invoke-interface {v1, v4, v0}, LPkUwx/Axwse/MCuFV/EfWRe;->YZPBt(LPkUwx/kHRtU;LPkUwx/kHRtU;)V

    goto :goto_1

    :catchall_0
    move-exception v2

    if-nez v1, :cond_7

    if-eqz v0, :cond_7

    invoke-virtual {v0}, LPkUwx/kHRtU;->uOBdj()LPkUwx/wkoHv;

    move-result-object v0

    invoke-static {v0}, LPkUwx/Axwse/NmOez;->wdUmr(Ljava/io/Closeable;)V

    :cond_7
    throw v2

    :cond_8
    invoke-virtual {v4}, LPkUwx/kHRtU;->uOBdj()LPkUwx/wkoHv;

    move-result-object v0

    invoke-static {v0}, LPkUwx/Axwse/NmOez;->wdUmr(Ljava/io/Closeable;)V

    :cond_9
    invoke-virtual {v1}, LPkUwx/kHRtU;->YsCmv()LPkUwx/acCnD;

    move-result-object v0

    invoke-static {v4}, LPkUwx/Axwse/MCuFV/mGQVz;->zVqUZ(LPkUwx/kHRtU;)LPkUwx/kHRtU;

    move-result-object v2

    invoke-virtual {v0, v2}, LPkUwx/acCnD;->VmVgn(LPkUwx/kHRtU;)LPkUwx/acCnD;

    move-result-object v0

    invoke-static {v1}, LPkUwx/Axwse/MCuFV/mGQVz;->zVqUZ(LPkUwx/kHRtU;)LPkUwx/kHRtU;

    move-result-object v2

    invoke-virtual {v0, v2}, LPkUwx/acCnD;->sEiOl(LPkUwx/kHRtU;)LPkUwx/acCnD;

    move-result-object v0

    invoke-virtual {v0}, LPkUwx/acCnD;->DWSCU()LPkUwx/kHRtU;

    move-result-object v0

    invoke-static {v0}, LPkUwx/Axwse/EwidO/bjmyg;->cnFQX(LPkUwx/kHRtU;)Z

    move-result v2

    if-eqz v2, :cond_2

    invoke-virtual {v1}, LPkUwx/kHRtU;->UhwFd()LPkUwx/tQIEa;

    move-result-object v1

    iget-object v2, p0, LPkUwx/Axwse/MCuFV/mGQVz;->pxsJP:LPkUwx/Axwse/MCuFV/EfWRe;

    invoke-direct {p0, v0, v1, v2}, LPkUwx/Axwse/MCuFV/mGQVz;->yfrHN(LPkUwx/kHRtU;LPkUwx/tQIEa;LPkUwx/Axwse/MCuFV/EfWRe;)LPkUwx/Axwse/MCuFV/WTFSf;

    move-result-object v1

    invoke-direct {p0, v1, v0}, LPkUwx/Axwse/MCuFV/mGQVz;->HMuXd(LPkUwx/Axwse/MCuFV/WTFSf;LPkUwx/kHRtU;)LPkUwx/kHRtU;

    move-result-object v0

    goto/16 :goto_1
.end method
